aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cassettes/test_status_post[None-direct].yaml')
-rw-r--r--tests/cassettes/test_status_post[None-direct].yaml56
1 files changed, 56 insertions, 0 deletions
diff --git a/tests/cassettes/test_status_post[None-direct].yaml b/tests/cassettes/test_status_post[None-direct].yaml
index c7efc29..6417c4e 100644
--- a/tests/cassettes/test_status_post[None-direct].yaml
+++ b/tests/cassettes/test_status_post[None-direct].yaml
@@ -55,4 +55,60 @@ interactions:
55 X-XSS-Protection: [1; mode=block] 55 X-XSS-Protection: [1; mode=block]
56 content-length: ['2'] 56 content-length: ['2']
57 status: {code: 200, message: OK} 57 status: {code: 200, message: OK}
58- request:
59 body: status=Toot%21&visibility=direct
60 headers:
61 Accept: ['*/*']
62 Accept-Encoding: ['gzip, deflate']
63 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
64 Connection: [keep-alive]
65 Content-Length: ['32']
66 Content-Type: [application/x-www-form-urlencoded]
67 User-Agent: [python-requests/2.9.1]
68 method: POST
69 uri: http://localhost:3000/api/v1/statuses
70 response:
71 body: {string: '{"id":"99882235174590787","created_at":"2018-04-18T20:05:57.660Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"direct","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99882235174590787","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99882235174590787","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"reblog":null,"application":{"name":"Mastodon.py
72 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
73 Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI
74 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpe","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpe","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","followers_count":0,"following_count":0,"statuses_count":22},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'}
75 headers:
76 Cache-Control: ['max-age=0, private, must-revalidate']
77 Content-Type: [application/json; charset=utf-8]
78 ETag: [W/"ad13c9a05d9da772aaca2561ff44a1ee"]
79 Transfer-Encoding: [chunked]
80 Vary: ['Accept-Encoding, Origin']
81 X-Content-Type-Options: [nosniff]
82 X-Frame-Options: [SAMEORIGIN]
83 X-Request-Id: [96ef42a0-a090-4215-a06b-ff2e39fa883f]
84 X-Runtime: ['0.545220']
85 X-XSS-Protection: [1; mode=block]
86 content-length: ['1382']
87 status: {code: 200, message: OK}
88- request:
89 body: null
90 headers:
91 Accept: ['*/*']
92 Accept-Encoding: ['gzip, deflate']
93 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
94 Connection: [keep-alive]
95 Content-Length: ['0']
96 User-Agent: [python-requests/2.9.1]
97 method: DELETE
98 uri: http://localhost:3000/api/v1/statuses/99882235174590787
99 response:
100 body: {string: '{}'}
101 headers:
102 Cache-Control: ['max-age=0, private, must-revalidate']
103 Content-Type: [application/json; charset=utf-8]
104 ETag: [W/"17ea51b490f7f353f6287a3108b61b55"]
105 Transfer-Encoding: [chunked]
106 Vary: ['Accept-Encoding, Origin']
107 X-Content-Type-Options: [nosniff]
108 X-Frame-Options: [SAMEORIGIN]
109 X-Request-Id: [64696d35-e32c-4232-9fdf-837cad3c4597]
110 X-Runtime: ['0.134674']
111 X-XSS-Protection: [1; mode=block]
112 content-length: ['2']
113 status: {code: 200, message: OK}
58version: 1 114version: 1
Powered by cgit v1.2.3 (git 2.41.0)